<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>一维码生成器</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script>
function doSub(){
	var val = document.getElementById("uuid").value;
	if(val == "" || val == undefined || val == null){
		alert('非法！请输入商品唯一标识号！');
		return false;
	}else{
		return true;
	}
}
</script>
</head>

<body>
	<br />
	<br />
	<br />
	<br />
	<center>
		<form method="get"
			action="${pageContext.request.contextPath}/result.jsp" onsubmit="return doSub()">
			<input type="text" name="uuid" id="uuid" placeholder="请输入商品唯一标识号" autofocus/>
			<br /><br /> 
			<input type="radio" name="ismd5" value="1" checked="checked" />加密 
			<input type="radio" name="ismd5" value="0" />不加密
			<br /><br /><br /> 
			<input type="reset" /> 
			<input type="submit" />
		</form>
	</center>
</body>
</html>
